/*
 * @Author: chentao 294446993@qq.com
 * @Date: 2022-12-30 14:00:55
 * @LastEditors: chentao 294446993@qq.com
 * @LastEditTime: 2022-12-30 14:08:50
 * @FilePath: \vue3-pc-app\src\utils\chat.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { isEmpty } from "./string";
export function handleMemberName(groupUser) {
  if (!isEmpty(groupUser.notes)) {
    return groupUser.notes;
  }
  if (!isEmpty(groupUser.gnickname)) {
    return groupUser.gnickname;
  }
  if (!isEmpty(groupUser.nickname)) {
    return groupUser.nickname;
  }
  return "";
}
